package core;

import com.google.common.base.Objects;

/**
 * Objet représentant une planète
 * 
 * @author sebastien
 */
public class Planet {

	/** Nom de la planète */
	private String name;

	/** Rayon de la planète */
	private double radius;

	/** Distance au soleil */
	private double distanceFromSun;

	/** La texture */
	private String texture;

	// Constructor
	public Planet(String name, double radius, double distanceFromSun) {
		this.name = name;
		this.radius = radius;
		this.distanceFromSun = distanceFromSun;
	}

	// toString
	@Override
	public String toString() {
		return Objects.toStringHelper(getClass()).add("Nom", name).add("Radius", radius).add("texture", texture)
				.toString();
	}

	// Accessors
	public double getRadius() {
		return radius;
	}

	public void setRadius(double radius) {
		this.radius = radius;
	}

	public double getDistanceFromSun() {
		return distanceFromSun;
	}

	public void setDistanceFromSun(double distanceFromSun) {
		this.distanceFromSun = distanceFromSun;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTexture() {
		return texture;
	}

	public void setTexture(String texture) {
		this.texture = texture;
	}

}
